package com.company.cloud.product.modules.api.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProductSimple {

    @ApiModelProperty(value = "商品编号")
    private String productNo;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "副标题")
    private String caption;

    @ApiModelProperty(value = "展示图片1")
    private String image;

    @ApiModelProperty(value = "展示图片2")
    private String image2;

    @ApiModelProperty(value = "展示图片3")
    private String image3;

    @ApiModelProperty(value = "展示图片4")
    private String image4;


    public ProductSimple(Product product) {
        this.productNo = product.getProductNo();
        this.name = product.getName();
        this.caption = product.getCaption();
        this.image = product.getImage();
        this.image2 = product.getImage2();
        this.image3 = product.getImage3();
        this.image4 = product.getImage4();

    }

    public ProductSimple() {

    }
}
